package com.example.exam.repository;

import com.example.exam.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.Optional;

/**
 * @author shishuqian
 * date 2021/5/12
 * time 15:36
 **/
@Repository
public interface UserRepository extends JpaRepository<User,Integer> {
    User findByUsername(String username);

    //User findByToken(String token);
}
